/**
 * 
 */
package com.mindtree.vi.dbaccess.manager.user;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Required;

import com.mindtree.vi.dbaccess.datatypes.user.UserActionsMap;
import com.mindtree.vi.dbaccess.manager.TableManager;

/**
 * @author venkatesh
 * 
 */
public class UserActionsTableManager implements TableManager<UserActionsMap> {

	private TableManager<UserActionsMap> tableManager;

	public UserActionsMap delete(long id) {
		throw new UnsupportedOperationException(
				"This operation is not supported!");
	}

	public UserActionsMap find(Class<? extends UserActionsMap> clazz, long id) {
		throw new UnsupportedOperationException(
				"This operation is not supported!");
	}

	public List<? extends UserActionsMap> find(String query) {
		return tableManager.find(query);
	}

	public List<UserActionsMap> find(String query,
			Map<String, Object> parameterMap) {
		throw new UnsupportedOperationException(
				"This operation is not supported!");
	}

	public UserActionsMap save(UserActionsMap id) {
		throw new UnsupportedOperationException(
				"This operation is not supported!");
	}

	public UserActionsMap update(UserActionsMap id) {
		throw new UnsupportedOperationException(
				"This operation is not supported!");
	}

	@Required
	public void setTableManager(TableManager<UserActionsMap> tableManager) {
		this.tableManager = tableManager;
	}

	public List<? extends UserActionsMap> findAll() {
		return find("select userMap from UserActionsMap userMap");
	}

}
